home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re Re(2) FW_CODPart WriteP.1 < prev    next >
Encoding:
Internet Message Format  |  1996-07-30  |  1.7 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Re(2): FW_CODPart::WritePartInfo
  2. Sent:        7/19/96 4:55 PM
  3. Received:    7/22/96 10:48 AM
  4. From:        Hutchings, Richard B. "Brad", brad@hutchings-software.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. > Making the file smaller would require moving content around in a
  9. > potentially expensive process.  This is essentially a stop-and-copy
  10. > garbage collection.  The user can initiate this kind of file compression
  11. > by saving a draft in a new file, where the new file will be compact and
  12. > the old file can be discarded if desired.
  13. > This rewrite operation might sound like a reasonable default behavior to
  14. > occur every time the file is saved, but the bigger the file gets, then
  15. > the longer the copying takes and the greater amount of RAM and/or disk is
  16. > consumed, potentially exhausting them before the operation completes.  It
  17. > seems user unfriendly to engage in very expensive operations without
  18. > receiving explicit instructions to do so.
  19.  
  20. One way the user can compact files is to "Save As...". This gives the
  21. desired results, i.e. a compacted file. However, OpenDoc does not allow the
  22. user to save over the current file.
  23.  
  24. Here's what would be a useful user/developer tool. Write a simple droplet
  25. script application that opens a file, saves it as a temporary file, deletes
  26. the original file, and replaces it with the renamed temporary. Problem
  27. solved.
  28.  
  29. I wonder if there isn't a way that root parts could do a similar thing.
  30.  
  31. Brad
  32.  
  33. <mailto: "Brad Hutchings" brad@hutchings-software.com>
  34. <http://www.hutchings-software.com>
  35.  
  36. Ask me about:
  37.     Hutchings Software's Rapid-I(tm) Button
  38.     Hutchings Software's Essential Strips(tm)
  39.  
  40.  
  41.